package com.boot.controller;

import com.boot.bean.Pet;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageConverterController {

    @RequestMapping("pet")
    public Pet getPet(){
        Pet pet = new Pet();
        pet.setName("tom");
        pet.setAge(11);
        return  pet;
    }
}
